#ifndef PWINDOWDRAWTYPE_H_KKIUUMMNCZ
#define PWINDOWDRAWTYPE_H_KKIUUMMNCZ

#include "../../../../kegui_global.h"


#include <QWidget>
#include <QPaintEvent>
#include <QVBoxLayout>

#include <QPointF>


namespace kepen {
namespace core {

class KEGUI_EXPORT PWindowDrawType : public QWidget
{
    Q_OBJECT
public:
    explicit PWindowDrawType(QWidget *parent,int checkedId,int data, QFont &thirdIconFont);
    ~PWindowDrawType();
public:


    int getCheckedId()const;
    int getData()const;

public Q_SLOTS:
    void timeoutCloseThiz();
protected:

    void mouseMoveEvent(QMouseEvent *event) override;
    void mousePressEvent(QMouseEvent *event) override;
    void mouseReleaseEvent(QMouseEvent *event) override;
    void paintEvent(QPaintEvent *) override;
private:
    int getIdOfTouched(const QPointF &point);
    void onPaintButtons(QPainter *painter,const  QSize &rectWin);
private:
    bool isMouseLeftDown;
    const  int m_IdChecked;
    const  int m_nData;
    int m_nIdTouchedDown,m_nIdMouseOver;
    int idMenuArray[4];
    QPointF ptDown;
    QFont &thirdFontIcon;


Q_SIGNALS:
    void selectedDrawToolSignals(QWidget *dlg,int id,int data);

};


}
}
#endif // PWINDOWDRAWTYPE_H
